import axios from 'axios';

export interface LoginData {
  username: string;
  password: string;
}

export interface LoginRes {
  accessToken: string;
  refreshToken: string;
  fullName: string;
}
export function login(data: LoginData) {
  return axios.post<LoginRes>('/api/system/login', data);
}
